package com.sc.nft.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sc.nft.enums.AcutionParticipationTypeEnum;
import com.sc.nft.sup.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


@Data
@TableName("sc_digital_collection_product_info_auction")
@ApiModel(value = "sc_digital_collection_product_info_auction 对象", description = "拍卖配置表")
public class DigitalCollectionProductInfoAuction extends SuperEntity implements Serializable {
    @ApiModelProperty(value = "商品id")
    private Long productId;

    @ApiModelProperty(value = "参与门槛类型")
    private AcutionParticipationTypeEnum participationType;

    @ApiModelProperty(value = "标的物价格")
    private BigDecimal auctionPrice;

    @ApiModelProperty(value = "标的物数量")
    private Integer auctionNum;

    @ApiModelProperty(value = "参与藏品最低参与数量")
    private Integer consumptionNum;

    @ApiModelProperty(value = "是否生成拍卖结果")
    private Boolean haveResult;

    @ApiModelProperty(value = "拍卖开始时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date auctionStartTime;

    @ApiModelProperty(value = "拍卖结束时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date auctionEndTime;

    @ApiModelProperty(value = "规则展示图")
    private String ruleImg;
}
